import javax.swing.JFrame;

import gui.ControlPanel;

public class SimController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
			System.out.println("Simulator started...");
			
			JFrame mainFrame = new JFrame("Simulator");
			ControlPanel controlPanel = new ControlPanel();
			mainFrame.add(controlPanel);
			mainFrame.pack();
			mainFrame.setVisible(true);
			
/*			relay.addSensorMessage(new SensorMessage(1, 2));
			
			boolean msgReceived = false;
			while (!msgReceived) {
				ControllerMessage msg = relay.getControllerMessage();
				if (msg != null) {
					msgReceived = true;
					System.out.println("ControllerMessage received: ");
					System.out.println("Lane: " + msg.getLane());
					System.out.println("LightState: " + msg.getLightState());
				}
				else {
					try {
						Thread.sleep(100);
					} 
					catch (InterruptedException e) {
						e.printStackTrace();
					}
				}
			}			
		} 
		catch (UnknownHostException e) {
			e.printStackTrace();
		} 
		catch (IOException e) {
			e.printStackTrace();
		}*/
	}
}
